home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 436 < prev    next >
Internet Message Format  |  1996-08-06  |  1KB

  1. Path: solon.com!not-for-mail
  2. From: Jens M Andreasen <jens-and@dsv.su.se>
  3. Newsgroups: comp.std.c,comp.lang.c.moderated
  4. Subject: Re: Integral promotion.
  5. Date: 25 Feb 1996 12:13:05 -0600
  6. Organization: Digital Solutions
  7. Sender: clc@solutions.solon.com
  8. Approved: clc@solutions.solon.com
  9. Message-ID: <4gq8rh$os0@solutions.solon.com>
  10. References: <4ggbcq$81c@solutions.solon.com> <4ggg41$91j@solutions.solon.com> <4gnb8t$bgl@solutions.solon.com>
  11. NNTP-Posting-Host: solutions.solon.com
  12.  
  13.  
  14.  
  15. On 24 Feb 1996, Stan Ryckman wrote:
  16.  
  17. On a discussion on   (short) x++ ; /* Warning: Loss of precision */
  18.  
  19. > I don't think compilers need to issue warnings for potential loss
  20. > of precision in any case, though, but I've been wrong before.
  21. > And we all know by now that they *may* issue such warnings at any
  22. > time without violating the Standard (even for "x *= 2;").
  23.  
  24. Since this is really happening, I would like to know: 
  25.  
  26. 1) Is it normal? (as opposed to legal) or should I consider it a bug (a 
  27.    legal bug but still a nuisance).
  28.  
  29. 2) _Should_ there be a way to cast ones way out? (Obviously not on this  
  30.    platform)
  31.  
  32. // Jens M Andreasen
  33.